package com.gmp.rooms.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.gmp.rooms.mapper.FacilitiesMapper;
import com.gmp.rooms.domain.Facilities;
import com.gmp.rooms.service.IFacilitiesService;

/**
 * 设施管理Service业务层处理
 *
 * @author Koi
 * @date 2025-07-28
 */
@Service
public class FacilitiesServiceImpl extends ServiceImpl<FacilitiesMapper, Facilities> implements IFacilitiesService {
    @Autowired
    private FacilitiesMapper facilitiesMapper;

    /**
     * 查询设施管理
     *
     * @param id 设施管理主键
     * @return 设施管理
     */
    @Override
    public Facilities selectFacilitiesById(String id) {
        return facilitiesMapper.selectFacilitiesById(id);
    }

    /**
     * 查询设施管理列表
     *
     * @param facilities 设施管理
     * @return 设施管理
     */
    @Override
    public List<Facilities> selectFacilitiesList(Facilities facilities) {
        return facilitiesMapper.selectFacilitiesList(facilities);
    }

    /**
     * 新增设施管理
     *
     * @param facilities 设施管理
     * @return 结果
     */
    @Override
    public int insertFacilities(Facilities facilities) {
            return facilitiesMapper.insertFacilities(facilities);
    }

    /**
     * 修改设施管理
     *
     * @param facilities 设施管理
     * @return 结果
     */
    @Override
    public int updateFacilities(Facilities facilities) {
        return facilitiesMapper.updateFacilities(facilities);
    }

    /**
     * 批量删除设施管理
     *
     * @param ids 需要删除的设施管理主键
     * @return 结果
     */
    @Override
    public int deleteFacilitiesByIds(String[] ids) {
        return facilitiesMapper.deleteFacilitiesByIds(ids);
    }

    /**
     * 删除设施管理信息
     *
     * @param id 设施管理主键
     * @return 结果
     */
    @Override
    public int deleteFacilitiesById(String id) {
        return facilitiesMapper.deleteFacilitiesById(id);
    }
}
